import request from "@/framework/utils/request";

// 订单列表
export function orderList(data) {
  return request({
    url: "/admin/OrderController/orderList",
    method: "post",
    data,
  });
}

// 订单删除
export function orderDelete(data) {
  return request({
    url: "/admin/OrderController/orderDelete",
    method: "post",
    data,
  });
}

// 订单详情
export function orderInfo(data) {
  return request({
    url: "/admin/OrderController/orderInfo",
    method: "post",
    data,
  });
}

// 订单花型删除
export function orderPatDelete(data) {
  return request({
    url: "/admin/OrderController/orderPatDelete",
    method: "post",
    data,
  });
}

// 订单导出
export function orderExport(data) {
  return request({
    url: "/admin/OrderController/orderExport",
    method: "post",
    data,
  });
}

// 订单新增
export function orderAdd(data) {
  return request({
    url: "/admin/OrderController/orderAdd",
    method: "post",
    data,
  });
}

// 订单新增 修改
export function patternAdd(data) {
  return request({
    url: "/admin/PatternController/patternAdd",
    method: "post",
    data,
  });
}




//订单提交
export function orderStatus(data) {
  return request({
    url: "/admin/OrderController/orderStatus",
    method: "post",
    data,
  });
}

//订单驳回
export function BackSubmit(data) {
  return request({
    url: "/admin/OrderController/BackSubmit",
    method: "post",
    data,
  });
}

//订单废除
export function abolishOrder(data) {
  return request({
    url: "/admin/OrderController/abolishOrder",
    method: "post",
    data,
  });
}

//订单修改
export function editOrder(data) {
  return request({
    url: "/admin/OrderController/editOrder",
    method: "post",
    data,
  });
}


export function OrderIsBuy(data) {
  return request({
    url: "/admin/OrderController/OrderIsBuy",
    method: "post",
    data,
  });
}





